package p2;

/**
 * @author krystal
 * @date 2022/11/9 16:44
 */
public class Demo1 {
    public static void main(String[] args) {
        int a = 20;
        int b = 10;

        System.out.println(a + b);  //30
        System.out.println(a - b);  //10
        System.out.println(a * b);  //200
        System.out.println(a / b);  //2
        System.out.println(a % b);  //0

        int c = 5;
        int d = 2;
        System.out.println(c / d);  //2,结果向下取整

        double e = 5;
        double f = 2;
        System.out.println(e / f);  //2.5,结果向下取整
    }
}
